$(document).ready(function() {  
    $('.cep').mask("99.999-999");
    
    $('.edit').click(function (e){
      ///Cancel the link behavior
      e.preventDefault();
      $('#id_e').val($(this).attr('e_id'));
      $('form').attr('action', '/meu/editEndereco').submit();
   });
   
   $('.home').click(function (e){
     e.preventDefault();
     Rk.Modal('#salvando');
     dados = {};
     dados.id = $(this).attr("e_id");
     $.ajax({
      type: "POST",
      url: "/meu/enderecoPadrao",
      data: dados,
      success: function(){window.location.reload();}
    });
   });
});
